import request from "@/utils/request";
import store from "@/store";

//题目列表
export const questionList = (params) => {
  return request({
    url: "/question/list",
    headers: { token: store.state.login.token },
    params,
  });
};
//删除题目
export const questionRemove = (data) => {
  return request({
    url: "/question/remove",
    method: "post",
    headers: { token: store.state.login.token },
    data,
  });
};
//设置题目状态
export const questionStatus = (data) => {
  return request({
    url: "/question/status",
    method: "post",
    headers: { token: store.state.login.token },
    data,
  });
};
